<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Autovermietung: PrintCars Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Autovermietung
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_print_cars.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_print_cars-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">PrintCars Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A functor which is calling Print() for every <a class="el" href="class_car.html" title="Header for the Car class.">Car</a> in a list.  
 <a href="class_print_cars.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_functors_car_hire_8h_source.html">FunctorsCarHire.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for PrintCars:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_print_cars.png" usemap="#PrintCars_map" alt=""/>
  <map id="PrintCars_map" name="PrintCars_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ae850daf4b2b00ea7f483e929f6512e47"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_print_cars.html#ae850daf4b2b00ea7f483e929f6512e47">PrintCars</a> (std::ostream &amp;stream)</td></tr>
<tr class="memdesc:ae850daf4b2b00ea7f483e929f6512e47"><td class="mdescLeft">&#160;</td><td class="mdescRight">CTor of functor <a class="el" href="class_print_cars.html" title="A functor which is calling Print() for every Car in a list.">PrintCars</a>.  <a href="#ae850daf4b2b00ea7f483e929f6512e47"></a><br/></td></tr>
<tr class="separator:ae850daf4b2b00ea7f483e929f6512e47"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35ab52d55b8257254407f0cbe8cd63be"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_print_cars.html#a35ab52d55b8257254407f0cbe8cd63be">operator()</a> (<a class="el" href="class_i_car.html">ICar</a> *car)</td></tr>
<tr class="memdesc:a35ab52d55b8257254407f0cbe8cd63be"><td class="mdescLeft">&#160;</td><td class="mdescRight">operator() overloaded  <a href="#a35ab52d55b8257254407f0cbe8cd63be"></a><br/></td></tr>
<tr class="separator:a35ab52d55b8257254407f0cbe8cd63be"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A functor which is calling Print() for every <a class="el" href="class_car.html" title="Header for the Car class.">Car</a> in a list. </p>
<p>This functor puts out a car to a given stream with all of its information including the car class, manufacturer, type, price without extras, price of every extra added in the car and the extra itself and also the total price of the requested car plus extra(s). </p>

<p>Definition at line <a class="el" href="_functors_car_hire_8h_source.html#l00027">27</a> of file <a class="el" href="_functors_car_hire_8h_source.html">FunctorsCarHire.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ae850daf4b2b00ea7f483e929f6512e47"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">PrintCars::PrintCars </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>CTor of functor <a class="el" href="class_print_cars.html" title="A functor which is calling Print() for every Car in a list.">PrintCars</a>. </p>
<p>The constructor stores the stream, where the output should be written to an intern variable. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">stream</td><td>The output stream where information is printed to </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_functors_car_hire_8h_source.html#l00036">36</a> of file <a class="el" href="_functors_car_hire_8h_source.html">FunctorsCarHire.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a35ab52d55b8257254407f0cbe8cd63be"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void PrintCars::operator() </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_i_car.html">ICar</a> *&#160;</td>
          <td class="paramname"><em>car</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>operator() overloaded </p>
<p>Uses the Print() function of the interface to print out all information the car has plus its total price. </p>

<p>Definition at line <a class="el" href="_functors_car_hire_8h_source.html#l00042">42</a> of file <a class="el" href="_functors_car_hire_8h_source.html">FunctorsCarHire.h</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_print_cars.html">PrintCars</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.2 </li>
  </ul>
</div>
</body>
</html>
